/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package questao07;

import java.util.ArrayList;
import java.util.Iterator;

/**
 *
 * @author SDKW
 */
public class TerceiroSensor extends Sensor {
    
    public TerceiroSensor(Alarme alarme) {
        super(alarme);
    }    
    
    public void notificarObservadores() {
        System.out.println("Alarme do " + toString());
        alarme.alarmar(this);
    }
    
    @Override
    public String toString() {
        return "Terceiro sensor";
    }
    
}
